﻿#ifndef PLATFORM_H
#define PLATFORM_H

#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(WIN32) || defined(_WIN32)
#define PLATFORM_WINDOWS
#else   /* Linux */
#define PLATFORM_LINUX
#endif

#if defined(_MSC_VER)
#define _CRT_SECURE_NO_WARNINGS
#endif

#if defined(PLATFORM_WINDOWS)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Shlwapi.h>
#else
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>    // strerror
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#endif

#endif  // PLATFORM_H
